package stringBuilder;

public class ReplaceDemo {
    public static void main(String[] args) {
        StringBuilder sb = new StringBuilder("好好学习java");
        sb.append(",为了找个好工作");
        sb.replace(9,17,"就是为了改变世界");
        System.out.println("sb = " + sb);//sb = 好好学习java,为了改变世界
    }
}
